<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'memberJob.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" type="text/css" href="/estate/css/css.css"></link>
<script type="text/javascript">
function submita(){
	var cbArray = document.getElementsByName("member");
			var userStr ="";
			for(var i = 0;i<cbArray.length;i++){
    			
    				userStr= userStr+cbArray[i].id+","+cbArray[i].value+",";
    				
    			
    		}
    		window.location.href="/estate/admin/priceProjectAction.action?method=member&userStr="+userStr;
}
</script>
  </head>
  
  <body>
  <form method="post" >
    <table width="40%" align="center" border="0" cellspacing="0" cellpadding="0" class="main">
    	<tr align="center">
    	<td colspan="2" class="tableTitle">  请为组员分配工作  </td>
    	</tr>
    	 <c:forEach var="member" items="${memberList}">
    	<tr>
    	<td align="right" class="two" width="50%" >${member.name}：</td>
    	<td align="left" class="two"><input type="text" id="${member.id }" name="member" /></td>
    	</tr>
    	</c:forEach>
    	<tr>
    	<td align="center" class="two" colspan="4"><input onFocus="this.blur();" style="cursor:pointer" type="button" name="submitButton" id="submitButton" class="button2" onclick="submita()" value="确定" /></td></tr>
    	</table>
    	</form>
  </body>
</html>
